<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
Route::option(['ext' => 'html', 'domain' => 'blog.io']);
Route::rule('alogin', 'admin/index/index', 'get|post');
Route::rule('aloginout', 'admin/index/loginout', 'post');

Route::rule('aindex', 'admin/home/index', 'get');
Route::rule('catelist', 'admin/home/catelist', 'get');
Route::rule('cateadd', 'admin/home/cateadd', 'get|post');
Route::rule('cateedit/[:id]', 'admin/home/cateedit', 'get|post');
Route::rule('catedel', 'admin/home/catedel', 'post');

Route::rule('articlelist', 'admin/home/articlelist', 'get');
Route::rule('articleadd', 'admin/home/articleadd', 'get|post');
Route::rule('articleedit/[:id]', 'admin/home/articleedit', 'get|post');
Route::rule('articledel', 'admin/home/articledel', 'post');

Route::rule('memberlist', 'admin/home/memberlist', 'get');
Route::rule('memberadd', 'admin/home/memberadd', 'get|post');
Route::rule('memberedit/[:id]', 'admin/home/memberedit', 'get|post');
Route::rule('memberdel', 'admin/home/memberdel', 'post');

Route::rule('adminlist', 'admin/home/adminlist', 'get');
Route::rule('adminadd', 'admin/home/adminadd', 'get|post');
Route::rule('adminedit/[:id]', 'admin/home/adminedit', 'get|post');
Route::rule('admindel', 'admin/home/admindel', 'post');

Route::rule('webset', 'admin/home/systemset', 'get|post');

Route::rule('index/[:id]', 'index/index/index', 'get');
Route::rule('login', 'index/index/login', 'get|post');
Route::rule('loginout', 'index/index/loginout', 'get|post');
Route::rule('article/:id', 'index/index/article', 'get');
Route::rule('/', 'index/index/index', 'get');
Route::rule('register', 'index/index/register', 'get|post');